home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD-ROM Advisor
/
CD-ROM Advisor.iso
/
prodemo
/
pdymain.dir
/
00002_Script_2
< prev
next >
Wrap
Text File
|
1995-09-29
|
2KB
|
53 lines
on enterFrame
--initialize first time through the movie, but not upon returns when the movie is restarted
--ie a global initialized here will not be reinitialized on returns from called movies
--this prevents state from being destroyed...and should make restart run faster
global gNumberOfMainButtons
global gCentersOfMainButtons, gMagicOffsetsOfMainButtons, gCastMemsOfMainButtons, gAniHasBeenViewed
global gRadiusOfMainButton
global gMagicH1, gMagicH2, gMagicV1, gMagicV2 --define regions for hit detection
global gAnisForMainButtons --names of Director movies (animations)
global gNumberOfSmallButtons
global gCentersOfSmallButtons, gMagicOffsetsOfSmallButtons, gCastMemsOfSmallButtons, gLabelsForSmallButtonActions
global gRadiusOfSmallButtons
global gIndexOfCurrentButton
global gMouseDownInButton --TRUE means down was in a button...in case of rollout
global gSmallButtonsOn --TRUE means that the small buttons are visible and active
global gIsMainButton, gIsSmallButton --makes gIndexOfCurr... relative to main or small button
global gChannelForHighLights, gChannelForFreeFlash
global gNextLabel --a score label
global gMovieToPlay --Boolean, true if there is a movie (animation) to play
put 5 into gNumberOfMainButtons
put [[128, 254], [128, 109], [324, 109], [520, 109], [520, 254]] into gCentersOfMainButtons
put [[-2,1],[-2,0],[-4,0],[-1,-2],[-4,1]] into gMagicOffsetsOfMainButtons
put [25, 26, 27, 28, 29] into gCastMemsOfMainButtons
put [FALSE, FALSE, FALSE, FALSE, FALSE] into gAniHasBeenViewed
put 56 into gRadiusOfMainButton
put 2 into gNumberOfSmallButtons
put [[125, 440], [517, 440]] into gCentersOfSmallButtons
put [[1, -4], [-1, -4]] into gMagicOffsetsOfSmallButtons
put [31, 32] into gCastMemsOfSmallButtons
put ["free", "exit"] into gLabelsForSmallButtonActions
put 32 into gRadiusOfSmallButtons
put 226 into gMagicH1 --right of Dylan and Edna
put 420 into gMagicH2 --right of Loni
put 188 into gMagicV1 --below Edna, Loni and Rol
put 359 into gMagicV2 --below Dylan and WildB
put ["Dylan.dxr", "Edna.dxr","Loni.dxr","Roland.dxr","Bill.dxr"] into gAnisForMainButtons
end enterFrame
on exitFrame
play movie "open.dxr"
end exitFrame